﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bank_Customer
{
    class Customer
    {

        private string firstName;
        private string lastName;
        private int accountantNumber;
        private int sumCash;

        public string FirstName
        {
            get
            {
                return firstName;
            }
            set
            {
                firstName = value;
            }
        }
        public string LastName
        {
            get
            {
                return lastName;
            }
            set
            {
                LastName = value;
            }
        }
        public int AccountantNumber
        {
            get
            {
                return accountantNumber;
            }
            set
            {
                accountantNumber = value;
            }
        }
        public int sumCash
        {
            get
            {
                return sumCash;
            }
            set
            {
                sumCash = value;
            }
        }



        public void PrintCustomerInfoToConsole()

        {
            Console.WriteLine("First name: {0}, lastname: {1}, accountantNumber: {2}, sumCash: {3} ", firstName, lastName, accountantNumber, sumCash);

        }

        public static Customer GenerateRandomCustomer()
        {
            Customer.CustomerCount++;
            Customer customer = new Customer();
            customer.firstName = "Vasya";
            customer.lastName = "Pupkin" + Customer.CustomerCount.ToString();
            customer.accountantNumber = Customer.rndGenerator.Next(0, 20));
          //  customer.sumCash = Customer.rndGenerator.Next(0, 1000));

            return customer;
        }

        public static Random rndGenerator = new Random();

        public static int CustomerCount;



    }


}

